package com.chipsit.constant;

import lombok.Getter;

@Getter
public enum Message {
    SUCCESS(Constants.SUCCESS, "操作成功"),
    UNAUTHORIZED(Constants.UNAUTHORIZED,"未授权"),
    FORBIDDEN(Constants.FORBIDDEN,"访问受限"),
    NOT_FOUND(Constants.NOT_FOUND,"资源不存在"),
    ERROR(Constants.ERROR,"系统内部错误");

    private final Integer code;
    private final String message;

    Message(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
